package com.ybkj.daijia.common;

import java.math.BigDecimal;
import java.util.List;

public class DriverOrderVo {

    private Long driverid;
    //@JsonIgnore
    private List<DriverOrderVo> drivers;
    //@JsonIgnore
    private DriverOrderVo zhuanche;
    //@JsonIgnore
    private DriverOrderVo errand;

    private DriverOrderVo freight;

    private DriverOrderVo zhuanxian;

    private String username;

    private String name;

    private String companyName;

    private long finishNums;//订单数

    private BigDecimal money;//订单金额

    private BigDecimal virtual;// 余额

    private BigDecimal ticheng;//提成

    private String type;// 员工类型

    private String introduced;//


    public DriverOrderVo getZhuanxian() {
        if (zhuanxian != null) {
            return zhuanxian;
        } else {
            return new DriverOrderVo();
        }
    }

    public void setZhuanxian(DriverOrderVo zhuanxian) {
        this.zhuanxian = zhuanxian;
    }

    public DriverOrderVo getFreight() {
        if (freight != null) {
            return freight;
        } else {
            return new DriverOrderVo();
        }
    }

    public void setFreight(DriverOrderVo freight) {
        this.freight = freight;
    }

    public DriverOrderVo getZhuanche() {
        if (zhuanche != null) {
            return zhuanche;
        } else {
            return new DriverOrderVo();
        }
    }

    public void setZhuanche(DriverOrderVo zhuanche) {
        this.zhuanche = zhuanche;
    }

    public DriverOrderVo getErrand() {
        if (errand != null) {
            return errand;
        } else {
            return new DriverOrderVo();
        }
    }

    public void setErrand(DriverOrderVo errand) {
        this.errand = errand;
    }

    public List<DriverOrderVo> getDrivers() {
        return drivers;
    }

    public void setDrivers(List<DriverOrderVo> drivers) {
        this.drivers = drivers;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public long getFinishNums() {
        return finishNums;
    }

    public void setFinishNums(long finishNums) {
        this.finishNums = finishNums;
    }

    public BigDecimal getMoney() {
        if (null == money) {
            return BigDecimal.ZERO;
        }
        return money;
    }

    public void setMoney(BigDecimal money) {
        this.money = money;
    }

    public BigDecimal getVirtual() {
        if (null == virtual) {
            return BigDecimal.ZERO;
        }
        return virtual;
    }

    public void setVirtual(BigDecimal virtual) {
        this.virtual = virtual;
    }

    public BigDecimal getTicheng() {
        if (null == ticheng) {
            return BigDecimal.ZERO;
        }
        return ticheng;
    }

    public void setTicheng(BigDecimal ticheng) {
        this.ticheng = ticheng;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Long getDriverid() {
        return driverid;
    }

    public void setDriverid(Long driverid) {
        this.driverid = driverid;
    }

    public String getIntroduced() {
        if (null == introduced) {
            return "";
        }
        return introduced;
    }

    public void setIntroduced(String introduced) {
        this.introduced = introduced;
    }


}
